﻿// <file>
//     <copyright see="prj:///doc/copyright.txt"/>
//     <license see="prj:///doc/license.txt"/>
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
//     <version>$Revision: 1966 $</version>
// </file>
namespace ICSharpCode.TextEditor.Document
{
    /// <summary>
    /// This interface is used to describe a span inside a text sequence
    /// </summary>
    public interface ISegment
    {
        #region Properties

        /// <value>
        /// The length of the span
        /// </value>
        int Length
        {
            get;
            set;
        }

        /// <value>
        /// The offset where the span begins
        /// </value>
        int Offset
        {
            get;
            set;
        }

        #endregion Properties
    }
}